package com.huilian.iotbox.client.dao;

import com.huilian.iotbox.data.dto.OrderExchangeItemDto;
import com.huilian.iotbox.data.po.OrderItem;
import com.huilian.iotbox.data.vo.OrderExchangeItemVo;
import com.huilian.iotbox.data.vo.OrderItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemDao {
    Integer add(OrderItem orderItem);

    Integer updateStatus(OrderItem orderItem);

    Integer update(OrderItem orderItem);


    List<OrderItem> getOrderItemById(@Param("orderId") Long orderId);

    List<OrderItemVo> getCommodityAndOrderItemByOrderId(@Param("orderId") Long orderId);

}
